<style>
.ly-box-check-group{
    display: flex;
    flex-flow: row;
}
</style>
<template>
    <div class="ly-box-check-group">
        <slot>

        </slot>
    </div>
</template>
<script>
    //这里定义组件
    Rap.define('', [], {
        name: 'ly-radio-group',
        props: {
            title: String,
            description: String,
            width: String,
            height: String,
            value: {
                'default': false
            }
        },
        watch: {
            'value': function (value) {
                var children = this.$children;
                for(var i=0;i<children.length;i++){
                    var child=children[i];
                    child.computeCheck(value);
                }
            }
        },
        data: function () {
            return {
                check_group_id: 1
            }
        },
        methods: {
            onItemClick: function () {

            }
        }
    })
</script>